package com.huxun.mapper;

import com.huxun.bean.Desk;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeskMapper {
    //查询
    List<Desk> getDesks(Desk desk);
    //新增
    int addDesk(Desk desk);
    //删除  是假删除
    int deleteDesk(int id);
    //状态  预订或者退桌
    int changeState(Desk desk);
    //根据id查询
    Desk getById(int id);

}
